<?php
echo ! empty($h2_title) ? '<h2>'. $h2_title .'</h2>' : '' ;
echo ! empty($message) ? '<p class="message">'. $message .'</p>' : '' ;

$flashmessage = $this->session->flashdata('message');
echo ! empty($flashmessage) ? '<p class="message">'. $flashmessage .'</p>' : '';

if (! empty($link)) {
	echo '<p class="bottom_link">';
	foreach($link as $links){
		echo $links .  '';
	}
	echo '</p>';
}
?>
<table cellpadding="0" cellspacing="0" rules="all" frame="box">
	<form name="absen_form" method="post" action="<?php echo $action; ?>">
	<tr class="zebra">
    	<td width="219">&nbsp;</td>
    	<td><?php echo $p1;?></td>
        <td><?php echo $p2;?></td>
        <td><?php echo $p3;?></td>
        <td><?php echo $p4;?></td>
        <td><?php echo $p5;?></td>
    </tr>
	<tr class="wh">
		<td>Dana Cadangan resiko</td>
        <td><input type="text" class="form_field" name="dck1" value="<?php echo set_value('dck1', isset($dck1) ? $dck1 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck2" value="<?php echo set_value('dck2', isset($dck2) ? $dck2 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck3" value="<?php echo set_value('dck3', isset($dck3) ? $dck3 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck4" value="<?php echo set_value('dck4', isset($dck4) ? $dck4 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck5" value="<?php echo set_value('dck5', isset($dck5) ? $dck5 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Dalam Pengawasan Khusus (DPK)</td>
        <td><input type="text" class="form_field" name="dpk1" value="<?php echo set_value('dpk1', isset($dpk1) ? $dpk1 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk2" value="<?php echo set_value('dpk2', isset($dpk2) ? $dpk2 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk3" value="<?php echo set_value('dpk3', isset($dpk3) ? $dpk3 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk4" value="<?php echo set_value('dpk4', isset($dpk4) ? $dpk4 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk5" value="<?php echo set_value('dpk5', isset($dpk5) ? $dpk5 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Kurang Lancar</td>
        <td><input type="text" class="form_field" name="kl1" value="<?php echo set_value('kl1', isset($kl1) ? $kl1 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl2" value="<?php echo set_value('kl2', isset($kl2) ? $kl2 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl3" value="<?php echo set_value('kl3', isset($kl3) ? $kl3 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl4" value="<?php echo set_value('kl4', isset($kl4) ? $kl4 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl5" value="<?php echo set_value('kl5', isset($kl5) ? $kl5 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Diragukan</td>
        <td><input type="text" class="form_field" name="d1" value="<?php echo set_value('d1', isset($d1) ? $d1 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d2" value="<?php echo set_value('d2', isset($d2) ? $d2 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d3" value="<?php echo set_value('d3', isset($d3) ? $d3 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d4" value="<?php echo set_value('d4', isset($d4) ? $d4 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d5" value="<?php echo set_value('d5', isset($d5) ? $d5 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Macet</td>
        <td><input type="text" class="form_field" name="m1" value="<?php echo set_value('m1', isset($m1) ? $m1 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m2" value="<?php echo set_value('m2', isset($m2) ? $m2 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m3" value="<?php echo set_value('m3', isset($m3) ? $m3 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m4" value="<?php echo set_value('m4', isset($m4) ? $m4 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m5" value="<?php echo set_value('m5', isset($m5) ? $m5 : '' );?>" /></td>
    </tr>
    <tr class="wh">
    	<td>Total pinjaman lalai > 12 bulan</td>
        <td><output name="tp1"><?php echo set_value('tp1', isset($tp1) ? $tp1 : '' );?></output></td>
        <td><output name="tp2"><?php echo set_value('tp2', isset($tp2) ? $tp2 : '' );?></output></td>
        <td><output name="tp3"><?php echo set_value('tp3', isset($tp3) ? $tp3 : '' );?></output></td>
        <td><output name="tp4"><?php echo set_value('tp4', isset($tp4) ? $tp4 : '' );?></output></td>
        <td><output name="tp5"><?php echo set_value('tp5', isset($tp5) ? $tp5 : '' );?></output></td>
    </tr>
    
    <tr class="wh">
		<td>Dana Cadangan resiko diluar</td>
        <td><input type="text" class="form_field" name="dck11" value="<?php echo set_value('dck11', isset($dck11) ? $dck11 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck12" value="<?php echo set_value('dck12', isset($dck12) ? $dck12 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck13" value="<?php echo set_value('dck13', isset($dck13) ? $dck13 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck14" value="<?php echo set_value('dck14', isset($dck14) ? $dck14 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dck15" value="<?php echo set_value('dck15', isset($dck15) ? $dck15 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Dalam Pengawasan Khusus (DPK)</td>
        <td><input type="text" class="form_field" name="dpk11" value="<?php echo set_value('dpk11', isset($dpk11) ? $dpk11 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk12" value="<?php echo set_value('dpk12', isset($dpk12) ? $dpk12 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk13" value="<?php echo set_value('dpk13', isset($dpk13) ? $dpk13 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk14" value="<?php echo set_value('dpk14', isset($dpk14) ? $dpk14 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="dpk15" value="<?php echo set_value('dpk15', isset($dpk15) ? $dpk15 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Kurang Lancar</td>
        <td><input type="text" class="form_field" name="kl11" value="<?php echo set_value('kl11', isset($kl11) ? $kl11 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl12" value="<?php echo set_value('kl12', isset($kl12) ? $kl12 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl13" value="<?php echo set_value('kl13', isset($kl13) ? $kl13 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl14" value="<?php echo set_value('kl14', isset($kl14) ? $kl14 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="kl15" value="<?php echo set_value('kl15', isset($kl15) ? $kl15 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Diragukan</td>
        <td><input type="text" class="form_field" name="d11" value="<?php echo set_value('d11', isset($d11) ? $d11 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d12" value="<?php echo set_value('d12', isset($d12) ? $d12 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d13" value="<?php echo set_value('d13', isset($d13) ? $d13 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d14" value="<?php echo set_value('d14', isset($d14) ? $d14 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="d15" value="<?php echo set_value('d15', isset($d15) ? $d15 : '' );?>" /></td>
    </tr>
    <tr class="wh">
        <td>Macet</td>
        <td><input type="text" class="form_field" name="m11" value="<?php echo set_value('m11', isset($m11) ? $m11 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m12" value="<?php echo set_value('m12', isset($m12) ? $m12 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m13" value="<?php echo set_value('m13', isset($m13) ? $m13 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m14" value="<?php echo set_value('m14', isset($m14) ? $m14 : '' );?>" /></td>
        <td><input type="text" class="form_field" name="m15" value="<?php echo set_value('m15', isset($m15) ? $m15 : '' );?>" /></td>
    </tr>
    <tr class="wh">
    	<td>Total pinjaman lalai 1-12 bulan</td>
        <td><output name="tp11"><?php echo set_value('tp11', isset($tp11) ? $tp11 : '' );?></output></td>
        <td><output name="tp12"><?php echo set_value('tp12', isset($tp12) ? $tp12 : '' );?></output></td>
        <td><output name="tp13"><?php echo set_value('tp13', isset($tp13) ? $tp13 : '' );?></output></td>
        <td><output name="tp14"><?php echo set_value('tp14', isset($tp14) ? $tp14 : '' );?></output></td>
        <td><output name="tp15"><?php echo set_value('tp15', isset($tp15) ? $tp15 : '' );?></output></td>
    </tr>
	<tr align="center">
		<td colspan="6" align="center" valign="middle"><?php echo $submit; ?><input type="reset" name="reset" id="reset" value=" Reset " /></td>
		
	</tr>
	</form>
</table>

<?php
if (! empty($link)) {
	echo '<p class="bottom_link">';
	foreach($link as $links){
		echo $links .  '';
	}
	echo '</p>';
}
?>